Skip to content

Conversation

@mdrxy
Copy link
Member

@mdrxy mdrxy commented Nov 15, 2025

Use more precise return types for with_structured_output

Replace dict with Mapping in several places to support TypedDict and other mapping types

This affects downstream packages requiring additional work

@mdrxy mdrxy requested a review from eyurtsev as a code owner November 15, 2025 07:25
@github-actions github-actions bot added core Related to the package `langchain-core` refactor labels Nov 15, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Nov 15, 2025

CodSpeed Performance Report

Merging #33985 will not alter performance

Comparing mdrxy/improve-core-typing (7f8e62f) with master (8a3bb73)

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

Summary

✅ 13 untouched
⏩ 21 skipped1

Footnotes

  1. 21 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@mdrxy mdrxy marked this pull request as draft November 15, 2025 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Related to the package `langchain-core` refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants